import java.util.Arrays;

public class Test {
  /*  public static void main(String[] args) {
        int[] array = {20,46,57,12,49,32,12,9,8,5,342,758,123,40,878};
        bubblesort(array);
        System.out.println(Arrays.toString(array));
    }
    public static void bubblesort(int[] array){
        for(int i = 0; i < array.length-1; i++){
            boolean flg = false;
            for(int j = 0; j < array.length-1-i; j++){
                if(array[j]>array[j+1]){
                    int tmp = array[j];
                    array[j] = array[j+1];
                    array[j+1] = tmp;
                    flg = true;
                }
            }
            if(flg == false){
                break;
            }
        }
    }*/
}
